package net.xxcxcxcx.xc_enhancedmob.register;

import net.minecraft.entity.attribute.EntityAttributeModifier;
import net.minecraft.entity.attribute.EntityAttributes;
import net.minecraft.entity.effect.StatusEffect;
import net.minecraft.entity.effect.StatusEffectType;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
import net.xxcxcxcx.xc_enhancedmob.effect.CustomEffect;
import net.xxcxcxcx.xc_enhancedmob.effect.FobidHealEffect;
import net.xxcxcxcx.xc_enhancedmob.effect.ProhibitionEffect;

import static net.xxcxcxcx.xc_enhancedmob.EnhancedMobMod.ModId;

public class StatusEffectRegister {
    public static final StatusEffect Prohibition = new ProhibitionEffect();

    public static final StatusEffect FobidHeal = new FobidHealEffect();
    public static final StatusEffect Paralysis =
            new CustomEffect(StatusEffectType.HARMFUL, 8171462).addAttributeModifier(EntityAttributes.GENERIC_MOVEMENT_SPEED,
                    "170BDAF0-DEAB-4826-4A13-6F848463DB4D",
                    -1,
                    EntityAttributeModifier.Operation.MULTIPLY_TOTAL);

    public static void Register() {
        Registry.register(Registry.STATUS_EFFECT, new Identifier(ModId, "prohibition"), Prohibition);
        Registry.register(Registry.STATUS_EFFECT, new Identifier(ModId, "fobidheal"), FobidHeal);
        Registry.register(Registry.STATUS_EFFECT, new Identifier(ModId, "paralysis"), Paralysis);
    }
}
